package file.demo;

import java.io.File;
import java.io.IOException;

public class FileDemo2 {
    public static void main(String[] args) throws IOException {
        //绝对路径
        File f = new File("E:\\Desktop\\Base_Learning\\HDay08\\src\\file\\a.txt");
        //相对路径，相对于当前项目而言
        //File f = new File("HDay08\\src\\file\\a.txt");
        f.createNewFile();
    }
}
